<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="/rest/index">首页</a>
	<table border="1">
		<thead>
			<tr>
				<th>序号</th><th>帐号</th><th>姓名</th><th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${userlist }" var="user" varStatus="id">
				<tr>
					<td>${id.count }</td>
					<td><a href="/rest/user/form?iduser=${user.iduser }">${user.username }</a></td>
					<td>${user.name }</td>
					<td>
						<button onclick="location='/rest/user/form?iduser=${user.iduser }'">修改</button>
						<button onclick="location='/rest/user/delete?idbook=${user.iduser }'">删除</button>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>